<%@page contentType="text/html; charset=UTF-8"%><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
	var pagingFormName="${param.formName}";
	function firstPage(){
	  goPage(1);
	}
	function previousPage(){
	  goPage(parseInt(document.forms(pagingFormName).currentPage.value)-1);
	}
	function nextPage(){
	  goPage(parseInt(document.forms[pagingFormName].currentPage.value)+1);
	}
	function endPage(){
	  goPage(${page.pages});
	}
	function goPage(index){
	  var form=document.forms[pagingFormName];
	  form.currentPage.value=index;
	  form.submit();
	}
</script>
<table  style="width:98%" align="center"><tr><td align="center">
共<font color="#FF0000">${page.totalSize}</font>条记录&nbsp;&nbsp;
共<font color="#FF0000">${page.pages}</font>页&nbsp;&nbsp;
当前是<font color="#FF0000">第${page.currentPage}页</font>&nbsp;&nbsp;
<c:if test="${page.currentPage > 1}">
<a href="javascript:firstPage()"><img src="../images/first.gif" width="37" height="15" border="0" /></a>&nbsp;&nbsp;<a href="javascript:previousPage()"><img src="../images/back.gif" width="43" height="15"  border="0"/></a></c:if>
<c:if test="${page.currentPage <= 1}"><a><img src="../images/first.gif" width="37" height="15" border="0"/></a>&nbsp;&nbsp;<a><img src="../images/back.gif" width="43" height="15"  border="0"/></a></c:if>
<c:if test="${page.currentPage < page.pages}"><a href="javascript:nextPage()"><img src="../images/next.gif" width="43" height="15" border="0"/></a>&nbsp;&nbsp;<a href="javascript:endPage()"><img src="../images/last.gif" width="37" height="15"  border="0"/></a></c:if>
<c:if test="${page.currentPage >= page.pages}"><a><img src="../images/next.gif" width="43" height="15" border="0" /></a>&nbsp;&nbsp;<a><img src="../images/last.gif" width="37" height="15"  border="0"/></a></c:if>
<select onchange="goPage(this.value)">
<c:forEach var="i" begin="1" end="${page.pages}">
<c:if test="${i==page.currentPage}"><option value="${i}" selected>第${i}页</option></c:if><c:if test="${i!=page.currentPage}"><option value="${i}">第${i}页</option></c:if>
</c:forEach></select>
<input type="hidden" name="currentPage" value="${page.currentPage}">
</td>
</tr></table>

